# coding: utf-8

s = '🎨'
print(type(s))

# 字符串编码为字节码
print(bytes(s,encoding='utf-8'))
print(s.encode('utf-8'))

# 字节码解码为字符串
print(b'\xf0\x9f\x8e\xa8'.decode())
